package com.lzx.adx.report.enums;

/**
 * 58和媒体趣头条回调类型映射
 */
public enum QttWphEnum {
    active("ACTIVE", "0"),
    new_order("NEW_ORDER", "2"),
    ;

    private String productCode;

    private String qttCode;



    QttWphEnum(String productCode, String qttCode) {
        this.productCode = productCode;
        this.qttCode = qttCode;

    }

    public String getProductCode() {
        return productCode;
    }

    public String getQttCode() {
        return qttCode;
    }



    public static String getQttCode(String productCode) {
        QttWphEnum[] qttWBEnums = QttWphEnum.values();
        for (QttWphEnum qttWBEnum : qttWBEnums) {
            if (qttWBEnum.getProductCode().equals(productCode)) {
                return qttWBEnum.getQttCode();
            }
        }
        return null;
    }

}
